package com.example.webservice.entity;

import lombok.Data;

import javax.xml.bind.annotation.*;

@Data
@XmlRootElement(name="api")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(propOrder={"value"})
public class ApiValue {


    @XmlAttribute(name = "name")
    private String name;

    @XmlElement(name="value")
    private String value;

    public ApiValue() {
    }

    public ApiValue(String name, String value) {
        this.name = name;
        this.value = value;
    }
}
